import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:wu_you/res/colors.dart';
import 'package:wu_you/widgets/html/flutter_html.dart';
import 'package:wu_you/widgets/html/style.dart';

class NoticeDetailPage extends StatelessWidget {
  final String title;
  final String content;

  NoticeDetailPage(this.title, this.content, {Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        backgroundColor: Colors.white,
        appBar: AppBar(
          title: Text("$title")
        ),
        body: Padding(
            padding: EdgeInsets.all(12),
            child: SingleChildScrollView(
              child:  Html(
                data: this.content,
                style: {
                  "html": Style(
                      color: AppColors.textColor
                  )
                },
              ),
            )
        )
    );
  }
}